package com.ykdl.member.kid.beans;

import java.io.Serializable;

import net.wxxr.http.interfaces.IJsonParser;

import org.json.JSONObject;

import android.text.TextUtils;

import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import com.google.gson.JsonObject;

import javax.*;

public class DialoguesMessageBean implements Serializable, IJsonParser {

	private Actor actor;
	private ActorDialogueBean actor_dialogue;
    private int current_actor_id;
    private DialogueBean dialogue;
    private boolean is_blocked;
    private MessageBean messages;
    private int next_cursor;
    private int previous_cursor;
    private int total_number;
	
	public Actor getActor() {
		return actor;
	}

	public void setActor(Actor actor) {
		this.actor = actor;
	}

	public ActorDialogueBean getActor_dialogue() {
		return actor_dialogue;
	}

	public void setActor_dialogue(ActorDialogueBean actor_dialogue) {
		this.actor_dialogue = actor_dialogue;
	}

	public int getCurrent_actor_id() {
		return current_actor_id;
	}

	public void setCurrent_actor_id(int current_actor_id) {
		this.current_actor_id = current_actor_id;
	}

	public DialogueBean getDialogue() {
		return dialogue;
	}

	public void setDialogue(DialogueBean dialogue) {
		this.dialogue = dialogue;
	}

	public boolean isIs_blocked() {
		return is_blocked;
	}

	public void setIs_blocked(boolean is_blocked) {
		this.is_blocked = is_blocked;
	}

	public MessageBean getMessages() {
		return messages;
	}

	public void setMessages(MessageBean messages) {
		this.messages = messages;
	}

	public int getNext_cursor() {
		return next_cursor;
	}

	public void setNext_cursor(int next_cursor) {
		this.next_cursor = next_cursor;
	}

	public int getPrevious_cursor() {
		return previous_cursor;
	}

	public void setPrevious_cursor(int previous_cursor) {
		this.previous_cursor = previous_cursor;
	}

	public int getTotal_number() {
		return total_number;
	}

	public void setTotal_number(int total_number) {
		this.total_number = total_number;
	}

	@Override
	public IJsonParser parse(String json) throws Exception {
		if (!TextUtils.isEmpty(json)) {
			GsonBuilder builder = new GsonBuilder();
			Gson gson = builder.create();
			return gson.fromJson(json, DialoguesMessageBean.class);
		}
		return null;
	}

}
